package com.zyh.day01

import scala.util.control.Breaks

object BreakTest {
  def main(args: Array[String]): Unit = {
    Breaks.breakable (
      for(i<-0 to 10){
        if(i==5){
          Breaks.break()
        }
        println(s"i = ${i}")
      }
    )
  }
}
